package si.sp.socialnetwork;

import java.sql.Date;

public class User {
    
    	int IDuser;
	String email;
	String geslo;
	String ime;
	String priimek;
	String kraj;
	String spol;
	Date rd;

	public User( int IDuser, String email, String geslo, String ime, String priimek, String kraj, String spol, Date rd ) {
        	this.IDuser = IDuser;
		this.email = email;
		this.geslo = geslo;
		this.ime = ime;
		this.priimek = priimek;
		this.kraj = kraj;
		this.spol = spol;
		this.rd = rd;
	}
	
	public User(String email, String geslo, String ime, String priimek, String kraj, String spol, Date rd ) {
		this.email = email;
		this.geslo = geslo;
		this.ime = ime;
		this.priimek = priimek;
		this.kraj = kraj;
		this.spol = spol;
		this.rd = rd;
}

	//za sprobat searchFriends servlet, ce so podatki na roke vneseni v servletu
	public User(String ime, String priimek, String kraj, int IDuser){
		this.IDuser = IDuser;
		this.email = null;
		this.geslo = null;
		this.ime = ime;
		this.priimek = priimek;
		this.kraj = kraj;
		this.spol = null;
		this.rd = null;
	}
        
        public int getIDuser(){
            return IDuser;
        }
        
        public void setIDuser(int IDuser){
            this.IDuser = IDuser;
        }

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGeslo() {
		return geslo;
	}

	public void setGeslo(String geslo) {
		this.geslo = geslo;
	}

	public String getIme() {
		return ime;
	}

	public void setIme(String ime) {
		this.ime = ime;
	}

	public String getPriimek() {
		return priimek;
	}

	public void setPriimek(String priimek) {
		this.priimek = priimek;
	}

	public String getKraj() {
		return kraj;
	}

	public void setKraj(String kraj) {
		this.kraj = kraj;
	}

	public String getSpol() {
		return spol;
	}

	public void setSpol(String spol) {
		this.spol = spol;
	}

	public Date getRd() {
		return rd;
	}

	public void setRd(Date rd) {
		this.rd = rd;
	}
	
	
	public String toString() {
		String str = ime+ ", " + priimek+ ", " + kraj+ ", " + spol;
		return str;
	}
}

